package com.share.demo.zkclient;

import org.I0Itec.zkclient.IZkConnection;
import org.apache.zookeeper.*;
import org.apache.zookeeper.data.ACL;
import org.apache.zookeeper.data.Stat;

import java.util.List;
import java.util.Map;

/**
*
* @date 2018/01/03
* @author caifan 
*
*/
public class ZKConnection implements IZkConnection {
    @Override
    public void connect(Watcher watcher) {

    }

    @Override
    public void close() throws InterruptedException {

    }

    @Override
    public String create(String s, byte[] bytes, CreateMode createMode) throws KeeperException, InterruptedException {
        return null;
    }

    @Override
    public String create(String s, byte[] bytes, List<ACL> list, CreateMode createMode) throws KeeperException, InterruptedException {
        return null;
    }

    @Override
    public void delete(String s) throws InterruptedException, KeeperException {

    }

    @Override
    public void delete(String s, int i) throws InterruptedException, KeeperException {

    }

    @Override
    public boolean exists(String s, boolean b) throws KeeperException, InterruptedException {
        return false;
    }

    @Override
    public List<String> getChildren(String s, boolean b) throws KeeperException, InterruptedException {
        return null;
    }

    @Override
    public byte[] readData(String s, Stat stat, boolean b) throws KeeperException, InterruptedException {
        return new byte[0];
    }

    @Override
    public void writeData(String s, byte[] bytes, int i) throws KeeperException, InterruptedException {

    }

    @Override
    public Stat writeDataReturnStat(String s, byte[] bytes, int i) throws KeeperException, InterruptedException {
        return null;
    }

    @Override
    public ZooKeeper.States getZookeeperState() {
        return null;
    }

    @Override
    public long getCreateTime(String s) throws KeeperException, InterruptedException {
        return 0;
    }

    @Override
    public String getServers() {
        return null;
    }

    @Override
    public List<OpResult> multi(Iterable<Op> iterable) throws KeeperException, InterruptedException {
        return null;
    }

    @Override
    public void addAuthInfo(String s, byte[] bytes) {

    }

    @Override
    public void setAcl(String s, List<ACL> list, int i) throws KeeperException, InterruptedException {

    }

    @Override
    public Map.Entry<List<ACL>, Stat> getAcl(String s) throws KeeperException, InterruptedException {
        return null;
    }
}
